const PATH = 'path'
const ACTION = 'action'
const DB = 'DB'

const UrlConfig = {
  config: {
    [PATH]: 'user',
    [DB]: 'user',
    [ACTION]: {
      getConfig: 'getConfig',
      getAds: 'getAds',
      getHtml: 'getHtml'
    }
  },
  user: {
    [PATH]: 'user',
    [DB]: 'user',
    [ACTION]: {
      getUser: 'getUserInfo'
    }
  },
  bill: {
    [PATH]: 'bill',
    [DB]: 'bill',
    [ACTION]: {
      getTotal: 'getTotal',
      getPageBill: 'getPageBill',
      getBillCategory: 'getBillCategory',
      updateCategory: 'updateCategory',
      getCateData: 'getCateData',
      getMonthData: 'getMonthData',
      getExcel: 'getExcel'
    }
  },
}

module.exports = {
  UrlConfig,
  PATH,
  ACTION,
  DB
}